
var Utility = require("../Utility/utility.js");
exports.workerRouter = function(router){


    //工人列表
    router.all('/worker/workerlist',function(req,res){


        Utility.getMenuList(req,res,function(menulist) {
            res.render('worker/workerlist', {
                layout: 'pte/layout-pte',
                active: 'workerlist',
                jscript: 'worker/workerlist',
                menulist:menulist,
                comparam:Utility.returnCommonParam(req,res)
            })

        });

    });

    //工人申请列表
    router.all('/worker/requestlist',function(req,res){


        Utility.getMenuList(req,res,function(menulist) {
            res.render('worker/requestlist', {
                layout: 'pte/layout-pte',
                active: 'requestlist',
                jscript: 'worker/requestlist',
                menulist:menulist,
                comparam:Utility.returnCommonParam(req,res)
            })

        });

    });

    //轮播图管理
    router.all('/worker/carolsellist',function(req,res){


        Utility.getMenuList(req,res,function(menulist) {
            res.render('worker/carolsellist', {
                layout: 'pte/layout-pte',
                active: 'carolsellist',
                jscript: 'worker/carolsellist',
                menulist:menulist,
                comparam:Utility.returnCommonParam(req,res)
            })

        });

    });

    //案例管理
    router.all('/worker/caselist',function(req,res){


        Utility.getMenuList(req,res,function(menulist) {
            res.render('worker/caselist', {
                layout: 'pte/layout-pte',
                active: 'caselist',
                jscript: 'worker/caselist',
                menulist:menulist,
                comparam:Utility.returnCommonParam(req,res)
            })

        });

    });

    /*
    * 工种列表
    */
    router.all('/worker/worker_types',function(req,res){


            Utility.getMenuList(req,res,function(menulist) {
                res.render('worker/worker_types', {
                    layout: 'pte/layout-pte',
                    active: 'worker_types',
                    jscript: 'worker/worker_types',
                    menulist:menulist,
                    comparam:Utility.returnCommonParam(req,res)
                })

            });

        });

    /*
    *
    */
    router.all('/worker/servicelist',function(req,res){


            Utility.getMenuList(req,res,function(menulist) {
                res.render('worker/servicelist', {
                    layout: 'pte/layout-pte',
                    active: 'servicelist',
                    jscript: 'worker/servicelist',
                    menulist:menulist,
                    comparam:Utility.returnCommonParam(req,res)
                })

            });

        });


    /*
    * 提现列表
    */
    router.all('/worker/withdrawlist',function(req,res){


            Utility.getMenuList(req,res,function(menulist) {
                res.render('worker/withdrawlist', {
                    layout: 'pte/layout-pte',
                    active: 'withdrawlist',
                    jscript: 'worker/withdrawlist',
                    menulist:menulist,
                    comparam:Utility.returnCommonParam(req,res)
                })

            });

        });



    /*
    * 工人财务列表
    */
    router.all('/worker/amountlist',function(req,res){


            Utility.getMenuList(req,res,function(menulist) {
                res.render('worker/amountlist', {
                    layout: 'pte/layout-pte',
                    active: 'amountlist',
                    jscript: 'worker/amountlist',
                    menulist:menulist,
                    comparam:Utility.returnCommonParam(req,res)
                })

            });

        });







}
